package net.yla.smartbus.module.ba.right.account.service;

import com.alibaba.fastjson.JSONObject;
import net.yla.smartbus.module.ba.right.account.entity.LoginTracesDO;
import net.yla.smartbus.module.ba.right.admin.query.IPCount;
import net.yla.smartbus.module.ba.right.admin.query.IPQuery;

import java.util.List;

/**
 * @Date: 2020-08-29 11:14
 * @Author: Being Nobody
 * @Version: 1.0
 */
public interface LoginTracesService {


    int deleteByPrimaryKey(Integer traceId);

    int insert(LoginTracesDO record);

    int insertSelective(LoginTracesDO record);

    LoginTracesDO selectByPrimaryKey(Integer traceId);

    int updateByPrimaryKeySelective(LoginTracesDO record);

    int updateByPrimaryKey(LoginTracesDO record);

    LoginTracesDO selectByLoginIP(long ipL);

    int ipOfCount(IPCount count);

    List<JSONObject> ipOfQuery(IPQuery query);

    JSONObject ipOfView(Integer traceId);
}
